package en.edu.scau.cmi.zhanzhiyong.carpter10;

import java.io.*;

public class FileAccept implements FilenameFilter {
	private String extendName;
	
	public void setExtendName(String name) {
		extendName = "." + name;
	}
	
	public boolean accept(File dir, String name) {
		return name.endsWith(extendName);
	}
}
